package com.tencent.miniproject.been;

import com.google.gson.Gson;

import java.util.List;

/**
 * Created by PC on 2018/5/30.
 */

public class MainBeen {

    /**
     * result : success
     * message : [{"username":"2","distance":26,"id":8,"userId":2,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"测试","imgLabel":"","releaseTime":"May 30, 2018 7:43:36 PM","cost":55,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"username":"2","distance":13,"id":9,"userId":2,"content":"","imgUrl":"a url","position":"广东省深圳市南山区科技中一路万利达科技大厦","longitude":113.933863,"latitude":22.540527,"store":"测试","imgLabel":"","releaseTime":"May 30, 2018 7:43:36 PM","cost":55,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"username":"2","distance":26,"id":6,"userId":2,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"测试","imgLabel":"","releaseTime":"May 30, 2018 7:43:36 PM","cost":8,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"username":"2","distance":26,"id":7,"userId":2,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"测试","imgLabel":"","releaseTime":"May 30, 2018 7:43:36 PM","cost":55,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"}]
     */

    private String result;
    private List<NeighborRecommand> message;

    public static MainBeen objectFromData(String str) {

        return new Gson().fromJson(str, MainBeen.class);
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public List<NeighborRecommand> getMessage() {
        return message;
    }

    public void setMessage(List<NeighborRecommand> message) {
        this.message = message;
    }

}
